﻿Shader "cyUrp/PostFXStack"
{
    SubShader {
		Cull Off
		ZTest Always
		ZWrite Off
        
        HLSLINCLUDE
        #include "./include/Common.hlsl"
        #include "./include/PostFXStackPasses.hlsl"
        ENDHLSL
        
        Pass
        {
            Name "Bloom Vertical"
            HLSLPROGRAM
                #pragma target 2.5
                #pragma vertex DefaultPassVertex
                #pragma fragment BloomVerticalPassFragment
            ENDHLSL
        }
        
        Pass
        {
            Name "Bloom Horizontal"
            HLSLPROGRAM
                #pragma target 3.5
                #pragma vertex DefaultPassVertex
                #pragma fragment BloomHorizontalPassFragment
            ENDHLSL
        }
        
        Pass
        {
            Name "Bloom BloomCombine"
            HLSLPROGRAM
                #pragma target 3.5
                #pragma vertex DefaultPassVertex
                #pragma fragment BloomCombinePassFragment
            ENDHLSL
        }
        
        Pass
        {
            Name "Bloom BloomPrefilter"
            HLSLPROGRAM
                #pragma target 3.5
                #pragma vertex DefaultPassVertex
                #pragma fragment BloomPrefilterPassFragment
            ENDHLSL
        }
        
        Pass {
			Name "Copy"
			
			HLSLPROGRAM
				#pragma target 3.5
				#pragma vertex DefaultPassVertex
				#pragma fragment CopyPassFragment
			ENDHLSL
		}
        
    }
}